Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android safe area #6363

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Fix Android safe area #6363

merged 1 commit into from
Aug 20, 2024

Conversation

hwsmm
Copy link
Contributor

@hwsmm hwsmm commented Aug 19, 2024

SDL3 started to provide safe area, and it uses setOnApplyWindowInsetsListener which overrides View.onApplyWindowInsets with View.OnApplyWindowInsetsListener.onApplyWindowInsets.

This PR makes AndroidGameSurface override View.OnApplyWindowInsetsListener.onApplyWindowInsets instead, and removes LayoutInDisplayCutoutMode as it is now set in SDL side.

I also tried using SDL-provided safe area, but it doesn't seem to work like our current implementation, so I think we can still keep ours for now.

@smoogipoo smoogipoo merged commit c2db7c8 into ppy:master Aug 20, 2024
19 of 21 checks passed
@hwsmm hwsmm deleted the fix-android-safe-area branch November 7, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants